Optimizing Clause Resolution: Beyond Uni cation Factoring

نویسندگان

  • Steven Dawson
  • C. R. Ramakrishnan
  • I. V. Ramakrishnan
  • Terrance Swift
چکیده

While clause resolution is central to logic programming, practical eeorts to optimize resolution have largely concerned eecient clause indexing. One recent exception is Uniication Factoring 5], which optimizes backtracking through clause heads. Here we consider the problem of optimizing clause resolution in a more general setting than Uniication Factoring. One fundamental change is to use mode informationto distinguish between elementary matching and uniication operations that arise in unifying a term. In addition, we expand the traditional notion of clause resolution to allow for tabled predicates. The result is that our optimization technique becomes relevant for both top-down and bottom-up evaluations. In this expanded setting, we introduce Clause Resolution Automata (CRA), to model clause resolution and to capture its cost. Furthermore, CRAs can be readily implemented as a source transformation. We consider the problem of constructing optimal CRAs. We show that the complexity of construction depends on a variety of conditions: on whether a predicate is tabled, on whether clause order is to be preserved, and on whether information is known about modes. For classes of programs where optimal CRAs can be constructed in polynomial time, dynamic programming algorithms are speciied for their construction. For programs in which optimal CRA construction is NP-complete or NP-hard, we develop heuristics for construction of CRAs. Finally, we present experimental results that show the impact of our approach on performance and space usage of a set of representative programs.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Optimizing Clause Resolution: Beyond Unification Factoring

While clause resolution is central to logic programming, practical eeorts to optimize resolution have largely concerned eecient clause indexing. One recent exception is Uniication Factoring 5], which optimizes backtracking through clause heads. Here we consider the problem of optimizing clause resolution in a more general setting than Uniication Factoring. One fundamental change is to use mode ...

متن کامل

Principles and Practice of Uni cation

The eeciency of resolution-based logic programming languages, such as Prolog, depends critically on selecting and executing sets of applicable clause heads to resolve against subgoals. Traditional approaches to this problem have focused on using indexing to determine the smallest possible applicable set. Despite their usefulness, these approaches ignore the nondeterminism inherent in many progr...

متن کامل

Uni cation in Extensions of Shallow Equational Theories

We show that uni cation in certain extensions of shallow equational theories is decidable Our extensions generalize the known classes of shallow or standard equational theories In order to prove de cidability of uni cation in the extensions a class of Horn clause sets called sorted shallow equational theories is introduced This class is a natural extension of tree automata with equality constra...

متن کامل

Factoring Out Assumptions to Speed Up MUS Extraction

In earlier work on a limited form of extended resolution for CDCL based SAT solving, new literals were introduced to factor out parts of learned clauses. The main goal was to shorten clauses, reduce proof size and memory usage and thus speed up propagation and conflict analysis. Even though some reduction was achieved, the effectiveness of this technique was rather modest for generic SAT solvin...

متن کامل

Optimizing Clause Resolution in Tabled Logic Programs

The incorporation of tabulation into resolution methods ((3, 5]) has proven eeective for computing the well-founded semantics in a goal-oriented manner. It has also given rise to an extremely eecient evaluation method for in-memory deductive databases 12]. Perhaps because these results are quite recent, the problem of optimizing tabled clause resolution has remained open, despite the fact that ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995